<?php

use Jialeo\LaravelSchemaExtend\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserInfosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_infos', function (Blueprint $table) {
            $table->charset = 'utf8';
            $table->collation = 'utf8_general_ci';
            $table->comment = '用户基础信息表';
            $table->increments('id');
            $table->unsignedInteger('user_id')->comment('用户id');
            $table->string('education')->comment('学历');
            $table->string('company')->comment('工作单位');
            $table->string('work_address')->comment('工作地址');
            $table->string('work_phone')->comment('工作单位电话');
            $table->string('linkman_first')->comment('紧急联系人1');
            $table->string('linkman_first_relation')->comment('紧急联系人1关系');
            $table->string('linkman_first_phone')->comment('紧急联系人1电话');
            $table->string('linkman_second')->comment('紧急联系人2');
            $table->string('linkman_second_relation')->comment('紧急联系人2关系');
            $table->string('linkman_second_phone')->comment('紧急联系人2电话');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('user_infos');
    }
}
